/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.webbapps.cormac_susilo.wrappers;

import edu.webbapps.cormac_susilo.core.Run;
import java.util.Date;

/**
 * This class is used to expose a Run over the REST api
 *
 * @author tor
 */
public class RunWrapper {

    private Run run;

    public RunWrapper(Run run) {
        this.run = run;
    }

    public double getDistance() {
        return this.run.getDistance();
    }

    public Long getId() {
        return this.run.getId();
    }

    public Date getRunDate() {
        return this.run.getRun_date();
    }

    public double getTotalTime() {
        return this.run.getTotalTime();
    }

    public String getTrackName() {
        return this.run.getTrackname();
    }

    public long getUser() {
        return this.run.getUser().getId();
    }

    public double getAvgHeartRate() {
        return this.run.getAvg_heartrate();
    }

    public double getMaxHeartRate() {
        return this.run.getMax_heartrate();
    }

    public double getAvgSpeed() {
        return this.run.getAvg_speed();
    }

    public double getMaxSpeed() {
        return this.run.getMax_speed();
    }

    public double getTotalCalories() {
        return this.run.getTotal_calories();
    }
}
